<div class="container">
    <form method="post" action="<?= base_url() ?>administrateur/valideInscription">
        <table class="table table-bordered table striped text-center">

            <thead>
            <th>nom</th>
            <th>Groupe</th>
            <th>Ecole</th>
            <th>Valider le compte</th>
            </thead>

            <?php
            $x = 0;
            foreach ($LesUsers as $value) {
                $x = $x + 1;
                echo "<tr>";
                echo "<td>" . $value->USR_name . "</td>";
                echo "<td>" . $value->GRP_LIB . "</td>";
                echo "<td>" . $value->SCHL_LIB . "</td>";
                echo "<td><input type='checkbox' id='tro' name='check" . $x . "' value='" . $value->USR_account_valid . "'></td>";
                echo "</tr>";
                echo "<input type='hidden' name='USR_name_value".$x."' value='".$value->USR_name."'>";
            }
                echo "<input type='hidden' name='compteur' value='".$x."'>";
            ?>

        </table>
        <input type="submit" value="Valider">
    </form>